include $(TOPDIR)/rules.mk
PKG_NAME:=netdrive
PKG_VERSION:=1

PKG_BULID_DIR:=$(BUILD_DIR)/$(PKG_NAME)

include $(INCLUDE_DIR)/package.mk

define Package/netdrive
	SECTION:=utils
	CATEGORY:=Network
	TILE:= amazon cloud drive backup
endif

define BUild/Prepare
	mkdir -p $(PKG_BUILD_DIR)
	$(CP) ./src/* $(PKG_BUILD_DIR)
	$(CP) ./files/* $(PKG_BUILD_DIR)
endif

define Package/netdrive/install
	install -d -m0755 $(1)/usr/sbin
	install -m0755  $(PKG_BUILD_DIR)/netdrive.sh $(1)/usr/sbin
endif

$(eval (call BuildPackage,netdrive))
